package GameServer

import (
	. "SGNet"
	"container/list"
)

const (
	PLAYERSTATE_ReadyRoom = 0
	PLAYERSTATE_Hall      = 1
	PLAYERSTATE_MATCHGAME = 2
	PLAYERSTATE_SCENE     = 3
)

type ClientPlayer struct {
	PlayerState int
	UserName    string
	Sess        *Session
	UserID      int64
	queueRef    *list.Element
	ReadyRoomID int64
	RunScene    *GameScene
}

func NewClientPlayer(sess *Session) *ClientPlayer {
	player := &ClientPlayer{}
	player.Sess = sess
	return player
}
